package headfirst.factory.simpleFactory;

import headfirst.factory.simpleFactory.factory.SimplePizzaFactory;
import headfirst.factory.simpleFactory.pizzaStore.Pizza;
import headfirst.factory.simpleFactory.pizzaStore.PizzaStore;

public class PizzaTestDrive {

    public static void main(String[] args) {
        SimplePizzaFactory factory = new SimplePizzaFactory();
        PizzaStore store = new PizzaStore(factory);

        Pizza pizza = store.orderPizza("cheese");
        System.out.println("We ordered a " + pizza.getName());
        System.out.println(pizza);

        pizza = store.orderPizza("veggie");
        System.out.println("We ordered a " + pizza.getName());
        System.out.println(pizza);

    }

}
